package com.wicket.okrapp.base.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wicket.okrapp.common.dto.FieldInfo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wicket.okrapp.base.service.MOmsAssistCheckPanelUpdateService;
import com.wicket.okrapp.common.exception.BizException;
import com.wicket.okrapp.common.util.CommonFunctionHelper;
import com.wicket.okrapp.dal.mapper.mbg.OmsAssistCheckPanelUpdateMapper;
import com.wicket.okrapp.dal.po.mbg.OmsAssistCheckPanelUpdate;
import com.wicket.okrapp.base.service.dto.req.*;
//import com.wicket.okrapp.base.service.dto.res.*;

import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;

import java.util.*;
import java.util.stream.Collectors;
import java.util.ArrayList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author ：
 * @since 2022/1/19 15:39
 *
 *
 * @version 1.0
 */
@Service
public class MOmsAssistCheckPanelUpdateServiceImpl
  extends ServiceImpl<OmsAssistCheckPanelUpdateMapper, OmsAssistCheckPanelUpdate>
  implements MOmsAssistCheckPanelUpdateService {

  @Autowired
  OmsAssistCheckPanelUpdateMapper omsAssistCheckPanelUpdateMapper;
/**
   * 3-11-02新增检查仪表盘更新[319]
   * gen by moon at 10/15/2022, 9:58:35 PM
   */
 @Trace(operationName = "3-11-02新增检查仪表盘更新")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  String  addAssistCheckPanelUpdate(OmsAssistCheckPanelUpdate omsAssistCheckPanelUpdate) {
     omsAssistCheckPanelUpdate.setCheckItemPanelUpdateId(CommonFunctionHelper.getUid());//DISTRIBUTED_ID
omsAssistCheckPanelUpdate.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
omsAssistCheckPanelUpdate.setCreateInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
omsAssistCheckPanelUpdate.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
omsAssistCheckPanelUpdate.setCreateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
omsAssistCheckPanelUpdate.setIsValid("FALSE");
omsAssistCheckPanelUpdate.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
omsAssistCheckPanelUpdate.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID
     if(super.save(omsAssistCheckPanelUpdate)){
        return omsAssistCheckPanelUpdate.getCheckItemPanelUpdateId();
     }else {
        return "-1";
     }
    
  }
/**
   * 3-11-02修改检查仪表盘更新[320]
   * gen by moon at 10/15/2022, 9:58:36 PM
   */
 @Trace(operationName = "3-11-02修改检查仪表盘更新")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  updateAssistCheckPanelUpdate(OmsAssistCheckPanelUpdate omsAssistCheckPanelUpdate) {
     omsAssistCheckPanelUpdate.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
omsAssistCheckPanelUpdate.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
        return super.updateById(omsAssistCheckPanelUpdate);
  }
/**
   * 3-11-02查询检查仪表盘更新详情[322]
   * gen by moon at 3/30/2023, 12:38:35 PM
   */
 @Trace(operationName = "3-11-02查询检查仪表盘更新详情")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  OmsAssistCheckPanelUpdate  queryAssistCheckPanelUpdateDetail(QueryAssistCheckPanelUpdateDetailReq reqDto) {
     
        try {
         reqDto.setIsValid("FALSE");
reqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
reqDto.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID
            QueryWrapper<OmsAssistCheckPanelUpdate> queryWrapper = new QueryWrapper<>();
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap, new ArrayList<>());
            queryWrapper.orderByDesc("create_time");
            List<OmsAssistCheckPanelUpdate> retList = super.list(queryWrapper);
            if(retList!=null && retList.size()>0){
                OmsAssistCheckPanelUpdate retData = retList.get(0);
                
                return retData;
            }
            return null;
      } catch (Exception e) {
          e.printStackTrace();
          throw new BizException("-1",e,false);
      }
  }
/**
   * 3-11-02查询检查仪表盘更新列表[323]
   * gen by moon at 10/15/2022, 9:58:38 PM
   */
 @Trace(operationName = "3-11-02查询检查仪表盘更新列表")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  List<OmsAssistCheckPanelUpdate>  queryAssistCheckPanelUpdateList(QueryAssistCheckPanelUpdateListReq reqDto) {
     
        try {
            QueryWrapper<OmsAssistCheckPanelUpdate> queryWrapper = new QueryWrapper<>();
            reqDto.setIsValid("FALSE");
            
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            List<FieldInfo> compareList = CommonFunctionHelper.getRangeField(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperCompare(queryWrapper, compareList, fieldInfoMap);
            List<FieldInfo> likeList = CommonFunctionHelper.getLikeFiled(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperLike(queryWrapper,likeList,fieldInfoMap);
            likeList.addAll(compareList);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap,likeList);
            List<FieldInfo> orderList = CommonFunctionHelper.getOrderList(OmsAssistCheckPanelUpdate.class);
            //CommonFunctionHelper.buildQueryWrapperOrder(queryWrapper, orderList);
            
            return ((List<OmsAssistCheckPanelUpdate>) super.list(queryWrapper));
        } catch (Exception e) {
            e.printStackTrace();
            throw new BizException("-1",e,false);
        }
  }
/**
   * 3-11-02查检查仪表盘列表[2717]
   * gen by moon at 11/15/2022, 9:35:43 PM
   */
 @Trace(operationName = "3-11-02查检查仪表盘列表")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  List<OmsAssistCheckPanelUpdate>  queryCheckItemPanelList(QueryCheckItemPanelListReq reqDto) {
     
        try {
            QueryWrapper<OmsAssistCheckPanelUpdate> queryWrapper = new QueryWrapper<>();
            reqDto.setIsValid("FALSE");
reqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
            
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            List<FieldInfo> compareList = CommonFunctionHelper.getRangeField(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperCompare(queryWrapper, compareList, fieldInfoMap);
            List<FieldInfo> likeList = CommonFunctionHelper.getLikeFiled(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperLike(queryWrapper,likeList,fieldInfoMap);
            likeList.addAll(compareList);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap,likeList);
            List<FieldInfo> orderList = CommonFunctionHelper.getOrderList(OmsAssistCheckPanelUpdate.class);
            //CommonFunctionHelper.buildQueryWrapperOrder(queryWrapper, orderList);
            queryWrapper.orderByAsc("order_number");
queryWrapper.orderByDesc("operate_time");
            return ((List<OmsAssistCheckPanelUpdate>) super.list(queryWrapper));
        } catch (Exception e) {
            e.printStackTrace();
            throw new BizException("-1",e,false);
        }
  }
/**
   * 3-11-02批量查检查仪表盘[2775]
   * gen by moon at 10/15/2022, 9:58:39 PM
   */
 @Trace(operationName = "3-11-02批量查检查仪表盘")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  List<OmsAssistCheckPanelUpdate>  batchQueryCheckItemPanel(BatchQueryCheckItemPanelReq reqDto) {
     
        try {
            QueryWrapper<OmsAssistCheckPanelUpdate> queryWrapper = new QueryWrapper<>();
            reqDto.setIsValid("FALSE");
reqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
reqDto.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID
            if(reqDto.getCheckItemPanelList()==null || reqDto.getCheckItemPanelList().isEmpty()){
                    return new ArrayList<>();
                }
        queryWrapper.in("check_object_type_id", reqDto.getCheckItemPanelList());
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            List<FieldInfo> compareList = CommonFunctionHelper.getRangeField(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperCompare(queryWrapper, compareList, fieldInfoMap);
            List<FieldInfo> likeList = CommonFunctionHelper.getLikeFiled(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperLike(queryWrapper,likeList,fieldInfoMap);
            likeList.addAll(compareList);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap,likeList);
            List<FieldInfo> orderList = CommonFunctionHelper.getOrderList(OmsAssistCheckPanelUpdate.class);
            //CommonFunctionHelper.buildQueryWrapperOrder(queryWrapper, orderList);
            
            return ((List<OmsAssistCheckPanelUpdate>) super.list(queryWrapper));
        } catch (Exception e) {
            e.printStackTrace();
            throw new BizException("-1",e,false);
        }
  }
/**
   * 3-11-02批量改检查仪表盘[2777]
   * gen by moon at 10/15/2022, 9:58:40 PM
   */
 @Trace(operationName = "3-11-02批量改检查仪表盘")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  batchUpdateCheckItemPanel(List<OmsAssistCheckPanelUpdate> omsAssistCheckPanelUpdate) {
     
      if(omsAssistCheckPanelUpdate==null || omsAssistCheckPanelUpdate.size()==0){
        return false;
      }
        return super.saveOrUpdateBatch(omsAssistCheckPanelUpdate);
      
  }
/**
   * 3-11-02批量增检查仪表盘[3037]
   * gen by moon at 10/15/2022, 9:58:41 PM
   */
 @Trace(operationName = "3-11-02批量增检查仪表盘")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  batchAddCheckItemPanel(List<OmsAssistCheckPanelUpdate> omsAssistCheckPanelUpdate) {
     
      if(omsAssistCheckPanelUpdate==null || omsAssistCheckPanelUpdate.size()==0){
        return false;
      }
      
      return super.saveBatch(omsAssistCheckPanelUpdate.stream().map(item->{
       item.setCheckItemPanelUpdateId(CommonFunctionHelper.getUid());//DISTRIBUTED_ID
item.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
item.setCreateInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
item.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
item.setIsValid("FALSE");
item.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
item.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID
item.setCreateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
          return item;
      }).collect(Collectors.toList()));
  }
/**
   * 3-11-02批量删检查仪表盘[3244]
   * gen by moon at 10/15/2022, 9:58:41 PM
   */
 @Trace(operationName = "3-11-02批量删检查仪表盘")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  batchDeleteCheckItemPanel(List<String> reqDto) {
     
          if(reqDto==null || reqDto.size()==0){
            return false;
          }
          
          return super.removeByIds(reqDto);
  }
/**
   * 3-11-02查询检查仪表盘列表ByCodes[3420]
   * gen by moon at 10/15/2022, 9:58:42 PM
   */
 @Trace(operationName = "3-11-02查询检查仪表盘列表ByCodes")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  List<OmsAssistCheckPanelUpdate>  batchQueryCheckItemPanelListByCodes(BatchQueryCheckItemPanelListByCodesReq reqDto) {
     
        try {
            QueryWrapper<OmsAssistCheckPanelUpdate> queryWrapper = new QueryWrapper<>();
            
            if(reqDto.getCheckItemList()==null || reqDto.getCheckItemList().isEmpty()){
                    return new ArrayList<>();
                }
        queryWrapper.in("check_item_code", reqDto.getCheckItemList());
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            List<FieldInfo> compareList = CommonFunctionHelper.getRangeField(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperCompare(queryWrapper, compareList, fieldInfoMap);
            List<FieldInfo> likeList = CommonFunctionHelper.getLikeFiled(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperLike(queryWrapper,likeList,fieldInfoMap);
            likeList.addAll(compareList);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap,likeList);
            List<FieldInfo> orderList = CommonFunctionHelper.getOrderList(OmsAssistCheckPanelUpdate.class);
            //CommonFunctionHelper.buildQueryWrapperOrder(queryWrapper, orderList);
            
            return ((List<OmsAssistCheckPanelUpdate>) super.list(queryWrapper));
        } catch (Exception e) {
            e.printStackTrace();
            throw new BizException("-1",e,false);
        }
  }
/**
   * M3-11-02一键删除检查仪表盘测试验证数据[4428]
   * gen by moon at 10/15/2022, 9:58:43 PM
   */
 @Trace(operationName = "M3-11-02一键删除检查仪表盘测试验证数据")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  autoDeleteAssistCheckPanelTest(List<String> reqDto) {
     
          if(reqDto==null || reqDto.size()==0){
            return false;
          }
          
          return super.removeByIds(reqDto);
  }
/**
   * M3-11-02查询检查仪表盘测试列表[4456]
   * gen by moon at 10/15/2022, 9:58:44 PM
   */
 @Trace(operationName = "M3-11-02查询检查仪表盘测试列表")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  List<OmsAssistCheckPanelUpdate>  queryAssistCheckPanelTestList(QueryAssistCheckPanelTestListReq reqDto) {
     
        try {
            QueryWrapper<OmsAssistCheckPanelUpdate> queryWrapper = new QueryWrapper<>();
            
            
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            List<FieldInfo> compareList = CommonFunctionHelper.getRangeField(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperCompare(queryWrapper, compareList, fieldInfoMap);
            List<FieldInfo> likeList = CommonFunctionHelper.getLikeFiled(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperLike(queryWrapper,likeList,fieldInfoMap);
            likeList.addAll(compareList);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap,likeList);
            List<FieldInfo> orderList = CommonFunctionHelper.getOrderList(OmsAssistCheckPanelUpdate.class);
            //CommonFunctionHelper.buildQueryWrapperOrder(queryWrapper, orderList);
            
            return ((List<OmsAssistCheckPanelUpdate>) super.list(queryWrapper));
        } catch (Exception e) {
            e.printStackTrace();
            throw new BizException("-1",e,false);
        }
  }
/**
   * M3-构造检查仪表盘测试验证数据[4492]
   * gen by moon at 10/15/2022, 9:58:44 PM
   */
 @Trace(operationName = "M3-构造检查仪表盘测试验证数据")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  String  buildAssistCheckPanelTest(OmsAssistCheckPanelUpdate omsAssistCheckPanelUpdate) {
     omsAssistCheckPanelUpdate.setCheckItemPanelUpdateId(CommonFunctionHelper.getUid());//DISTRIBUTED_ID
omsAssistCheckPanelUpdate.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
omsAssistCheckPanelUpdate.setCreateInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
omsAssistCheckPanelUpdate.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
omsAssistCheckPanelUpdate.setCreateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
omsAssistCheckPanelUpdate.setIsValid("FALSE");
omsAssistCheckPanelUpdate.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
omsAssistCheckPanelUpdate.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID
     if(super.save(omsAssistCheckPanelUpdate)){
        return omsAssistCheckPanelUpdate.getCheckItemPanelUpdateId();
     }else {
        return "-1";
     }
    
  }
/**
   * M3-修改检查仪表盘测试[4493]
   * gen by moon at 10/15/2022, 9:58:45 PM
   */
 @Trace(operationName = "M3-修改检查仪表盘测试")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  updateAssistCheckPanelTest(OmsAssistCheckPanelUpdate omsAssistCheckPanelUpdate) {
     
        return super.updateById(omsAssistCheckPanelUpdate);
  }
/**
   * 3-11-02删除检查仪表盘[321]
   * gen by moon at 10/20/2022, 10:01:55 AM
   */
 @Trace(operationName = "3-11-02删除检查仪表盘")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  deleteCheckItemPanel(String checkItemPanelUpdateId ) {

      return super.removeById(checkItemPanelUpdateId);
  }
/**
   * 3-11-02批量更新检查仪表盘[5201]
   * gen by moon at 11/17/2022, 7:54:44 AM
   */
 @Trace(operationName = "3-11-02批量更新检查仪表盘")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  batchRefreshCheckItemPanel(List<OmsAssistCheckPanelUpdate> omsAssistCheckPanelUpdate) {

      if(omsAssistCheckPanelUpdate==null || omsAssistCheckPanelUpdate.size()==0){
        return false;
      }
        return super.saveOrUpdateBatch(omsAssistCheckPanelUpdate);

  }
/**
   * M3-11-02批量查询检查仪表盘测试[5554]
   * gen by moon at 12/30/2022, 6:30:37 PM
   */
 @Trace(operationName = "M3-11-02批量查询检查仪表盘测试")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  List<OmsAssistCheckPanelUpdate>  batchQueryAssistCheckPanelTest(BatchQueryAssistCheckPanelTestReq reqDto) {

        try {
            QueryWrapper<OmsAssistCheckPanelUpdate> queryWrapper = new QueryWrapper<>();

            if(reqDto.getCheckItemPanelList()==null || reqDto.getCheckItemPanelList().isEmpty()){
                    return new ArrayList<>();
                }
        queryWrapper.in("check_object_type_id", reqDto.getCheckItemPanelList());
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            List<FieldInfo> compareList = CommonFunctionHelper.getRangeField(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperCompare(queryWrapper, compareList, fieldInfoMap);
            List<FieldInfo> likeList = CommonFunctionHelper.getLikeFiled(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperLike(queryWrapper,likeList,fieldInfoMap);
            likeList.addAll(compareList);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap,likeList);
            List<FieldInfo> orderList = CommonFunctionHelper.getOrderList(OmsAssistCheckPanelUpdate.class);
            //CommonFunctionHelper.buildQueryWrapperOrder(queryWrapper, orderList);

            return ((List<OmsAssistCheckPanelUpdate>) super.list(queryWrapper));
        } catch (Exception e) {
            e.printStackTrace();
            throw new BizException("-1",e,false);
        }
  }
/**
   * M3-11-02批量改检查仪表盘测试[5555]
   * gen by moon at 1/5/2023, 12:01:38 AM
   */
 @Trace(operationName = "M3-11-02批量改检查仪表盘测试")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  batchUpdateAssistCheckPanelTest(List<OmsAssistCheckPanelUpdate> omsAssistCheckPanelUpdate) {

      if(omsAssistCheckPanelUpdate==null || omsAssistCheckPanelUpdate.size()==0){
        return false;
      }
        return super.saveOrUpdateBatch(omsAssistCheckPanelUpdate);

  }
/**
   * 3-11-02批量改仪表盘[5607]
   * gen by moon at 1/7/2023, 8:38:09 PM
   */
 @Trace(operationName = "3-11-02批量改仪表盘")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  batchUpdateDashboard(List<OmsAssistCheckPanelUpdate> omsAssistCheckPanelUpdate) {

      if(omsAssistCheckPanelUpdate==null || omsAssistCheckPanelUpdate.size()==0){
        return false;
      }
        return super.saveOrUpdateBatch(omsAssistCheckPanelUpdate);

  }
/**
   * 3-11-2批量查询仪表盘列表ByCode[6006]
   * gen by moon at 3/2/2023, 12:07:57 PM
   */
 @Trace(operationName = "3-11-2批量查询仪表盘列表ByCode")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  List<OmsAssistCheckPanelUpdate>  batchQueryDashboardListByIds(BatchQueryDashboardListByIdsReq reqDto) {

        try {
            QueryWrapper<OmsAssistCheckPanelUpdate> queryWrapper = new QueryWrapper<>();
            reqDto.setIsValid("FALSE");
reqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
            if(reqDto.getCheckItemPanelList()==null || reqDto.getCheckItemPanelList().isEmpty()){
                    return new ArrayList<>();
                }
        queryWrapper.in("check_item_code", reqDto.getCheckItemPanelList());
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            List<FieldInfo> compareList = CommonFunctionHelper.getRangeField(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperCompare(queryWrapper, compareList, fieldInfoMap);
            List<FieldInfo> likeList = CommonFunctionHelper.getLikeFiled(OmsAssistCheckPanelUpdate.class);
            CommonFunctionHelper.buildQueryWrapperLike(queryWrapper,likeList,fieldInfoMap);
            likeList.addAll(compareList);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap,likeList);
            List<FieldInfo> orderList = CommonFunctionHelper.getOrderList(OmsAssistCheckPanelUpdate.class);
            //CommonFunctionHelper.buildQueryWrapperOrder(queryWrapper, orderList);

            return ((List<OmsAssistCheckPanelUpdate>) super.list(queryWrapper));
        } catch (Exception e) {
            e.printStackTrace();
            throw new BizException("-1",e,false);
        }
  }

}

